package com.eurabia.eggchat.service;

import java.util.List;
import com.github.pagehelper.Page;
import com.eurabia.eggchat.pojo.SysEggchatRole;
import com.eurabia.eggchat.pojo.form.SysEggchatRoleForm;
import com.eurabia.eggchat.pojo.query.SysEggchatRoleQuery;

/**
 * SysEggchatRoleService 
 */
public interface SysEggchatRoleService {

    /**
     * 查询 SysEggchatRole
     */
    List<SysEggchatRole> find(final SysEggchatRoleQuery query);
    
    /**
     * 分页查询 SysEggchatRole
     */
    Page<SysEggchatRole> findByPage(final SysEggchatRoleQuery query);

    /**
     * 通过id得到一个 SysEggchatRole
     */
    SysEggchatRole get(final String id);
    
    /**
     * 新增 SysEggchatRole
     */
    void add(final SysEggchatRoleForm form);

    /**
     * 修改 SysEggchatRole
     */
    int update(final SysEggchatRoleForm form);
    
    /**
     * 删除一个 SysEggchatRole
     */
    int delete(final String id);
	
	/**
     * 修改是否可用
     */
    int changeEnabled(final String id, final Integer enabled);
}